// 接口对方法入参的约束

interface FullName {
  firstName: string;
  lastName: string;
}

function printName(f: FullName) {
  console.log(f.firstName + f.lastName)
}

// printName(12)
// printName('非正常的')

let obj = {
  age: 12,
  firstName: '李',
  lastName: 'si'
}

printName({
  firstName: '张',
  lastName: '三'
})

printName(obj)

export default () => {}

